<?php
	/**
	* Video Categories Management
	* @author: trungdt
	* @since: Oct 26, 2011
	* @version: 1.0
	* 
	* Change logs
	*/
	
	if (!defined("EXPONENT")) exit("");
	if (exponent_users_isAdmin() || exponent_permissions_check(array("administrate", "configure", "edit", "create", "delete"), $loc))
	{
		global $db;

		$video_cats=$db->selectObjects("productsmodule_video_cat", "location_data = '".serialize($loc)."'");

		$template = new template("productsmodule","_video_cat_management",$loc);
		$template->register_permissions(array('administrate',"configure", "create", "edit", "delete"),$loc);
		$template->assign('video_cats', $video_cats);
		exponent_flow_set(SYS_FLOW_PUBLIC, SYS_FLOW_ACTION);
		$template->output();
	}
	else
	{
		echo SITE_403_HTML;
	}
?>